let express = require('express');
let app = new express();
const bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())
app.get('/api/sl', function (req, res) {
    res.send('哈哈')
})
app.get('/api/geter',function(req,res){
    res.send('嘻嘻')
})
app.post('/api/login', function (req, res) {
    console.log(req.body);
    res.send({
        status:'200',
        token:'123456'
    })
})

app.listen(8081, function () {
    console.log('服务启动了')
})